FROM docker.elastic.co/logstash/logstash:7.9.3
#COPY kibana/filebeat.yml /usr/share/filebeat/filebeat.yml
COPY config /usr/share/logstash/config
COPY pipeline /usr/share/logstash/pipeline
USER root

RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo 'Asia/Shanghai' >/etc/timezone

COPY scripts/entrypoint.sh /usr/share/logstash/bin/entrypoint.sh

CMD ["sh", "/usr/share/logstash/bin/entrypoint.sh"]